package com.easydata.libPlugin.core;

import com.alibaba.fastjson2.JSONObject;
import org.pf4j.ExtensionPoint;

public interface IDAGNode extends ExtensionPoint {
    String name();

    void init(AbstractDAGContext context, JSONObject parameter);
    void prepare(AbstractDAGContext context) throws Exception;
    void start(AbstractDAGContext context) throws Exception;
    void stop(AbstractDAGContext context) throws Exception;

    void process(AbstractDAGContext context) throws Exception;
}
